ci: declare workflow-level contents: read on maven, pr-checks, version-increments#3322
Conversation
97786d7 to
a97ce40
Compare
…n-increments Three workflows that just run build/checks. No GitHub API writes from the workflows. contents: read at workflow level is appropriate. Post-CVE-2025-30066 hardening pattern. yaml.safe_load validated. Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
a97ce40 to
0653041
Compare
|
There is smth wrong with this PR: from https://github.com/eclipse-platform/eclipse.platform.swt/actions/runs/26680432597 |
The workflow-level permissions block set every other scope to none, which broke the three reusable-workflow callers. verifyFreezePeriod.yml requests issues: read, so the caller rejected it with 'requesting issues: read, but is only allowed issues: none'. Move contents: read down to the check-javadoc-consistency job, which is the only standalone job that uses GITHUB_TOKEN for checkout. The reusable callers keep their default token context so their own declared permissions apply unchanged. Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
|
Thanks for catching that @akurtakov, and sorry for the breakage. You're right: the workflow-level I have moved Workflow file should validate now. |
Adds workflow-level
permissions: contents: readto three workflows that just run build / checks:maven,pr-checks,version-increments. No GitHub API writes.Same post-CVE-2025-30066 (
tj-actions/changed-files) hardening pattern. YAML validated locally.